/* global Vue */
import About from '@/components/About'
import HelloWorld from '@/components/HelloWorld'
import Home from '@/components/Home'
import Second from '@/components/Second'
import Router from 'vue-router'
import WXwebview from '@/components/WXwebview'
import Wpicker from '@/components/Wpicker'
import Wmodel from '@/components/Wmodel'
import Net from '@/components/Net'
import Error from '@/components/Error'

Vue.use(Router)

export const router = new Router({
  // mode: 'history',
  mode: 'hash',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/about',
      name: 'About',
      component: About
    },
    {
      path: '/second',
      name: 'Second',
      component: Second
    },
    {
      path: '/wxwebview',
      name: 'WXwebview',
      component: WXwebview
    },
    {
      path: '/wpicker',
      name: 'Wpicker',
      component: Wpicker
    },
    {
      path: '/wmodel',
      name: 'Wmodel',
      component: Wmodel
    },
    {
      path: '/net',
      name: 'Net',
      component: Net
    },
    {
      path: '/error',
      name: 'Error',
      component: Error
    }
  ]
})
